class CreateLineItems < ActiveRecord::Migration
  def self.up
    create_table :line_items do |t|
      t.references  :invoice
      t.integer     :quantity
      t.text        :product_description
      t.decimal     :unit_cost,           :precision => 8, :scale => 2
      t.decimal     :options_cost,        :precision => 8, :scale => 2
      t.timestamps
    end
  end

  def self.down
    drop_table :line_items
  end
end
